﻿/*CREATE TRIGGER [dbo].[Financiamientos_DeletionTrigger] 
    ON [Financiamientos] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[Financiamientos_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[FinanciamientoGuid] = [Financiamientos_Tombstone].[FinanciamientoGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[Financiamientos_Tombstone] 
    ([FinanciamientoGuid], DeletionDate)
    SELECT [FinanciamientoGuid], GETUTCDATE()
    FROM deleted 
END*/